package com.wwdx.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author liguoliang
 */
@Entity
@Table(name = "wwdx_vip_user")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties({"id","unionid","type","userName","subscribe"})
public class WwdxVipUserModel implements Serializable{

    @Id
    @GeneratedValue
    private Long id;
    private String unionid;
    /**
     * 生效时间
     */
    @Column(name = "effect_time")
    private String effectTime;
    /**
     * 失效时间
     */
    @Column(name = "expire_time")
    private String expireTime;
    /**
     * 是否试用0否1是
     */
    private Integer type;

    @Transient
    private String userName;
    @Transient
    private Integer subscribe;
}